package com.chmingx.admin.exception;

import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

/**
 * 一般用于处理项目中自定义的异常, 比如项目中哪里 throw new DiyException
 */
@ResponseStatus(value = HttpStatus.FORBIDDEN, reason = "页面被紧张访问")
public class DiyException extends RuntimeException {
    public DiyException() {
    }

    public DiyException(String message) {
        super(message);
    }
}
